package com.live.http.client.study;

import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;

public class UrlHttp {
	
	public static void main(String[] args) throws Exception{
		url();
	}
	
	public static void url() throws Exception{
		URL url=new URL("http://www.baidu.com");
		URLConnection connection=url.openConnection();
		InputStream stream=connection.getInputStream();
		System.out.println(stream);
	}
}
